package repositorio;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the PAGA database table.
 * 
 */
@Entity
@NamedQuery(name="Paga.findAll", query="SELECT p FROM Paga p")
public class Paga implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idPaga;
	private Factura factura;
	private Pasajero pasajero;
	private Responsablepago responsablepago;

	public Paga() {
	}


	@Id
	@SequenceGenerator(name="PAGA_IDPAGA_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PAGA_IDPAGA_GENERATOR")
	@Column(name="ID_PAGA")
	public int getIdPaga() {
		return this.idPaga;
	}

	public void setIdPaga(int idPaga) {
		this.idPaga = idPaga;
	}


	//bi-directional one-to-one association to Factura
	@OneToOne
	@JoinColumn(name="ID_FACTURA")
	public Factura getFactura() {
		return this.factura;
	}

	public void setFactura(Factura factura) {
		this.factura = factura;
	}


	//uni-directional many-to-one association to Pasajero
	@ManyToOne
	@JoinColumn(name="ID_PASAJERO")
	public Pasajero getPasajero() {
		return this.pasajero;
	}

	public void setPasajero(Pasajero pasajero) {
		this.pasajero = pasajero;
	}


	//uni-directional many-to-one association to Responsablepago
	@ManyToOne
	@JoinColumn(name="ID_RESPONSABLE")
	public Responsablepago getResponsablepago() {
		return this.responsablepago;
	}

	public void setResponsablepago(Responsablepago responsablepago) {
		this.responsablepago = responsablepago;
	}

}